using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

[CreateAssetMenu(menuName =("Event/SenceLoadEventSO"))]

public class SenceLoadEventSO : ScriptableObject
{
    public UnityAction<GameSceneSO, Vector3, bool> LoadRequestEvent;
    public void RaiseLoadRequestEvent(GameSceneSO locationTogo,Vector3 positionToGo,bool fadeScreen) 
    {
        LoadRequestEvent?.Invoke(locationTogo,positionToGo,fadeScreen);
    }
}
